package cn.itcast.day02.duotai06;
/*
   接口作为方法的参数-->多态
 */
public class Test {
    public static void main(String[] args) {
        Mouse mouse = new Mouse();
        method(mouse);

        KeyBoard keyBoard = new KeyBoard();
        method(keyBoard);
    }

    public static void method(USB usb){
        usb.open();
        usb.close();
    }
}
